package net.easyjava.third.rongcloud.rong.models;


import com.alibaba.fastjson.JSONObject;
import net.easyjava.third.rongcloud.rong.util.GsonUtil;

import java.io.Serializable;

//消息基类，如实现自定义消息，可继承此类
public class Message implements Serializable {

	protected String type;
	protected ContentUser user;

	public ContentUser getUser() {
		return user;
	}

	public void setUser(ContentUser user) {
		this.user = user;
	}

	public String getType() {
		return type;
	}


	@Override
	public String toString() {
//		return GsonUtil.toJson(this, Message.class);
		return JSONObject.toJSONString(this);
	}
}
